package com.lyq.permission.service.impl;

import com.lyq.basic.service.impl.BaseServiceImpl;
import com.lyq.permission.domain.Permission;
import com.lyq.permission.mapper.PermissionMapper;
import com.lyq.permission.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:liangyunqian
 * @Date: 2022/12/13  22:22
 * @Description:
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;


    @Override
    public List<Permission> tree() {
        return permissionMapper.tree();
    }

    @Override
    public List<String> getPermissionSnsByLoginUserId(Long id) {
        return permissionMapper.getPermissionSnsByLoginUserId(id);
    }
}
